package com.rzjm.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 *  事件处理记录
 *
 * @author mr.zhou
 * @email zhouwei_nice@163.com
 * @date 2020-12-15 22:36:23
 */
@Data
@TableName("events_record")
public class EventsRecord implements Serializable {
	private static final long serialVersionUID = 1L;

	//主键
	@TableId(type = IdType.AUTO)
	private Integer id;
	private Integer userId;
	private Long sysUserId;
	private Integer companyId;
	private Integer typeChildId;
	private Integer sectionId;
	private String content;

	private Integer safeDepartId;
	private Integer safeUserId;
	private Integer safeSysUserId;
	private String safeHandleResult;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date safeHandleTime;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date safeSubmitTime;
	private Integer safeSubmitSysUserId;
	private Integer safeSubmitUserId;
	private String safeSubmitResult;
	/**
	 * 确认事件的状态 1 - 不实事件  2 - 确认完成
	 */
	private Integer safeSubmitState;

	/**
	 *  处理人的部门
	 */
	private Integer handleDepartId;
	private Integer handleUserId;
	private Integer handleSysUserId;
	private String deptHandleContent;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date handleDeptTime;
	private Integer state;

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;

	@TableField(exist = false)
	private String sectionContent;

	@TableField(exist = false)
	private String eventTypeTitle;

	@TableField(exist = false)
	List<EventsRecordImg> recordImgs;

	@TableField(exist = false)
	List<EventsRecordImg> recordHandleImgs;

}
